@import "common.less";

* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

// 媒体查询,当页面超过750px的时候，页面也是按照750px来显示
@media screen and (min-width: 750px) {
  html {
    font-size: 75px !important;
  }
}

body {
  min-width: 4.266667rem;
  max-width: 10rem;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f7f7f7;
  // height: 40rem;
}
// 标题部分
header {
  position: relative;
  height: 1.733333rem;
  padding-top: 0.933333rem;
  font-size: 0.426667rem;
  text-align: center;
  color: #000000;
  font-weight: 700;
  border-bottom: 1px solid #ccc;
  background-color: #fff;
  a {
    position: absolute;
    top: 0.973333rem;
    left: 0.4rem;
    content: "";
    width: 0.2rem;
    height: 0.2rem;
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    transform: rotate(-45deg);
  }
}

// 题目标题
.title {
  height: 1.066667rem;
  line-height: 1.066667rem;
  padding-left: 0.466667rem;
  font-size: 0.4rem;
}
// 题目部分
.cont {
  padding: 0.4rem 0.44rem;
  background-color: #fff;
  font-size: 0.373333rem;
  font-weight: 700;

  p {
    margin-top: 0.4rem;
    .box {
      display: inline-block;
      width: 1.426667rem;
      height: 0.6rem;
      line-height: 0.533333rem;
      text-align: center;
      // border: 1px solid #ccc;
      border-radius: 0.266667rem;
      &:nth-child(1) {
        background-image: -webkit-linear-gradient(left, #52c4f0, #2ccac7);
        padding: 0.026667rem;

        span {
          display: block;
          width: 100%;
          height: 100%;
          background-color: #fff;
          border-radius: 0.266667rem;
          span {
            display: block;
            width: 100%;
            height: 100%;
            background-image: -webkit-linear-gradient(left, #52c4f0, #2ccac7);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
          }
        }
      }
      &:nth-child(2) {
        background-image: -webkit-linear-gradient(left, #2dcaab, #2dcaab);
        padding: 0.026667rem;

        span {
          display: block;
          width: 100%;
          height: 100%;
          background-color: #fff;
          border-radius: 0.266667rem;
          span {
            display: block;
            width: 100%;
            height: 100%;
            background-image: -webkit-linear-gradient(left, #2dcaab, #2dcaab);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
          }
        }
      }
    }
  }
}
// 答案解析
.common-style {
  padding: 0 0.4rem 0.933333rem 0.4rem;
  background-color: #fff;
  .comm-hd {
    height: 0.533333rem;
    // line-height: 0.36rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
    .left-icons {
      width: 3.6rem;
      height: 0.08rem;
      // background-color: purple;
      position: relative;
      &::before {
        position: absolute;
        left: 0;
        top: 0.04rem;
        content: "";
        width: 3.64rem;
        height: 1px;
        background: url(../icons/line.png) no-repeat center top;
        background-size: 3.573333rem 1px;
      }
      &::after {
        position: absolute;
        top: 0;
        right: 0;
        content: "";
        width: 0.08rem;
        height: 0.08rem;
        border: radius 3px;
        background: url(../icons/circle.png) no-repeat center top;
        background-size: 0.08rem 0.08rem;
      }
    }
    .titlet {
      font-size: 0.346667rem;
    }
    .right-icons {
      width: 3.6rem;
      height: 0.08rem;
      position: relative;
      &::before {
        position: absolute;
        top: 0;
        left: 0;
        content: "";
        width: 0.08rem;
        height: 0.08rem;
        border: radius 3px;
        background: url(../icons/circle.png) no-repeat center top;
        background-size: 0.08rem 0.08rem;
      }
      &::after {
        position: absolute;
        left: 0;
        top: 0.04rem;
        content: "";
        width: 3.64rem;
        height: 1px;
        background: url(../icons/line.png) no-repeat center top;
        background-size: 3.533333rem 1px;
      }
    }
  }
  p {
    text-indent: 2em;
    font-size: 0.293333rem;
    padding-top: 0.666667rem;
  }
}

// 问题扩展
.pro-cont {
  margin-top: 0.733333rem;
  // background-color: pink;
  h4 {
    font-size: 0.333333rem;
    color: #45c6e2;
  }
  div {
    text-indent: 2em;
    font-size: 0.293333rem;
  }
  section {
    display: block;
    margin-top: 1rem;
    width: 100%;
    height: 4.24rem;
    line-height: 0.533333rem;
    padding: 0.466667rem;
    font-size: 0.293333rem;
    border-radius: 0.133333rem;
    background-color: #e8e8e8;
  }
}
.finall {
  padding-bottom: 1.333333rem;
}

// 底部部分
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 10rem;
  height: 1.226667rem;
  line-height: 1.226667rem;
  padding: 0 0.266667rem;
  border-top: 1px solid #ccc;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  color: #666666;
  background-color: #f7f7f7;
  > a {
    position: relative;
    width: 1.466667rem;
    height: 100%;
    font-size: 0.373333rem;
    padding-left: 0.44rem;
    color: #666;
    // background-color: pink;
    &::before {
      position: absolute;
      top: 50%;
      left: 0;
      transform: translateY(-50%);
      content: "";
      width: 0.4rem;
      height: 0.386667rem;
      background: url(../icons/star.png) no-repeat center top;
      background-size: 0.4rem 0.386667rem;
    }
  }

  .right-parttt {
    width: 5.066667rem;
    display: flex;
    .icos {
      flex: 33.33%;
      height: 100%;
      position: relative;
      padding-left: 0.466667rem;
      font-size: 0.4rem;
      &:nth-child(1) {
        color: #2ccac7;
      }
      &:nth-child(n + 2) {
        color: #666;
      }
      &:nth-child(3) {
        span {
          color: #2ccac7;
        }
      }
      &:nth-child(1)::before {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        content: "";
        width: 0.4rem;
        height: 0.4rem;
        background: url(../icons/smile.png) no-repeat center top;
        background-size: 0.4rem 0.4rem;
      }

      &:nth-child(2)::before {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        content: "";
        width: 0.4rem;
        height: 0.4rem;
        background: url(../icons/cry.png) no-repeat center top;
        background-size: 0.4rem 0.4rem;
      }

      &:nth-child(3)::before {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        content: "";
        width: 0.4rem;
        height: 0.4rem;
        background: url(../icons/score.png) no-repeat center top;
        background-size: 0.4rem 0.4rem;
      }
    }
  }
}

.final {
  margin-bottom: 0.666667rem;
}
